#include "QtUI/Impl/QtSelectionViewImpl.qth"
#include "QtUI/Impl/QtSelectionViewImpl.moh"
#include "QtUI/QtSelectionViewBase.hpp"

namespace QtUI { namespace Impl
{

QtSelectionViewImpl::QtSelectionViewImpl( QtSelectionViewBase& selView)
	: rSelView_( selView)
{
	connect( 
		this, SIGNAL( selectionChangedSignal( const Ctrl::SelectionModel*)), 
		this, SLOT( selectionChangedSlot( const Ctrl::SelectionModel*)), 
		Qt::QueuedConnection);
}

// ---------------------------------------------------------------------------------------------------------------------

void QtSelectionViewImpl::selectionChangedSlot( const Ctrl::SelectionModel* rNewSelection)
{
	rSelView_.handleSelectionChanged( *rNewSelection);
}
	
}} // namespace Impl // namespace QtUI
